﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020006E9 RID: 1769
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetFriendChallengeDetailCsReq : IMessage<GetFriendChallengeDetailCsReq>, IMessage, IEquatable<GetFriendChallengeDetailCsReq>, IDeepCloneable<GetFriendChallengeDetailCsReq>, IBufferMessage
	{
		// Token: 0x170016B9 RID: 5817
		// (get) Token: 0x06004FAB RID: 20395 RVA: 0x000D9165 File Offset: 0x000D7365
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetFriendChallengeDetailCsReq> Parser
		{
			get
			{
				return GetFriendChallengeDetailCsReq._parser;
			}
		}

		// Token: 0x170016BA RID: 5818
		// (get) Token: 0x06004FAC RID: 20396 RVA: 0x000D916C File Offset: 0x000D736C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetFriendChallengeDetailCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170016BB RID: 5819
		// (get) Token: 0x06004FAD RID: 20397 RVA: 0x000D917E File Offset: 0x000D737E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetFriendChallengeDetailCsReq.Descriptor;
			}
		}

		// Token: 0x06004FAE RID: 20398 RVA: 0x000D9185 File Offset: 0x000D7385
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendChallengeDetailCsReq()
		{
		}

		// Token: 0x06004FAF RID: 20399 RVA: 0x000D918D File Offset: 0x000D738D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendChallengeDetailCsReq(GetFriendChallengeDetailCsReq other) : this()
		{
			this.uid_ = other.uid_;
			this.challengeId_ = other.challengeId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004FB0 RID: 20400 RVA: 0x000D91BE File Offset: 0x000D73BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendChallengeDetailCsReq Clone()
		{
			return new GetFriendChallengeDetailCsReq(this);
		}

		// Token: 0x170016BC RID: 5820
		// (get) Token: 0x06004FB1 RID: 20401 RVA: 0x000D91C6 File Offset: 0x000D73C6
		// (set) Token: 0x06004FB2 RID: 20402 RVA: 0x000D91CE File Offset: 0x000D73CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x170016BD RID: 5821
		// (get) Token: 0x06004FB3 RID: 20403 RVA: 0x000D91D7 File Offset: 0x000D73D7
		// (set) Token: 0x06004FB4 RID: 20404 RVA: 0x000D91DF File Offset: 0x000D73DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeId
		{
			get
			{
				return this.challengeId_;
			}
			set
			{
				this.challengeId_ = value;
			}
		}

		// Token: 0x06004FB5 RID: 20405 RVA: 0x000D91E8 File Offset: 0x000D73E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetFriendChallengeDetailCsReq);
		}

		// Token: 0x06004FB6 RID: 20406 RVA: 0x000D91F6 File Offset: 0x000D73F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetFriendChallengeDetailCsReq other)
		{
			return other != null && (other == this || (this.Uid == other.Uid && this.ChallengeId == other.ChallengeId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004FB7 RID: 20407 RVA: 0x000D9234 File Offset: 0x000D7434
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this.ChallengeId != 0U)
			{
				num ^= this.ChallengeId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004FB8 RID: 20408 RVA: 0x000D928C File Offset: 0x000D748C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004FB9 RID: 20409 RVA: 0x000D9294 File Offset: 0x000D7494
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004FBA RID: 20410 RVA: 0x000D92A0 File Offset: 0x000D74A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Uid != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Uid);
			}
			if (this.ChallengeId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.ChallengeId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004FBB RID: 20411 RVA: 0x000D92FC File Offset: 0x000D74FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this.ChallengeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004FBC RID: 20412 RVA: 0x000D9354 File Offset: 0x000D7554
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetFriendChallengeDetailCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			if (other.ChallengeId != 0U)
			{
				this.ChallengeId = other.ChallengeId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004FBD RID: 20413 RVA: 0x000D93A4 File Offset: 0x000D75A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004FBE RID: 20414 RVA: 0x000D93B0 File Offset: 0x000D75B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 56U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ChallengeId = input.ReadUInt32();
					}
				}
				else
				{
					this.Uid = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001F59 RID: 8025
		private static readonly MessageParser<GetFriendChallengeDetailCsReq> _parser = new MessageParser<GetFriendChallengeDetailCsReq>(() => new GetFriendChallengeDetailCsReq());

		// Token: 0x04001F5A RID: 8026
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001F5B RID: 8027
		public const int UidFieldNumber = 5;

		// Token: 0x04001F5C RID: 8028
		private uint uid_;

		// Token: 0x04001F5D RID: 8029
		public const int ChallengeIdFieldNumber = 7;

		// Token: 0x04001F5E RID: 8030
		private uint challengeId_;
	}
}
